<@admin.header title="内部联系人列表">
<script type="text/javascript">
    $(document).ready(function(){
		App.ns('InternalContact');
		
		
		InternalContact.form = new App.common.Form({
			base:'${base}/internalcontact'
		});
		
		
		InternalContact.search = function(){
			$('#searchForm').submit();
		}
		InternalContact.delAll = function(){
			var ids = InternalContact.form.getCheckboxValues();
			InternalContact.form.deleteRecord(ids);
		}
		
		InternalContact.del = function(ids){
			InternalContact.form.deleteRecord(ids);
		}
		
    });
</script>
</@admin.header>
    <body>
        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li>
                    <a href="#">首页</a>
                </li>
                <li>
                    <a href="list.do">内部联系人管理</a>
                </li>
                <li>
                    <a href="#">内部联系人列表</a>
                </li>
            </ul>
        </div>
        <div class="rightinfo">
        	<!--默认查询表单-->
        <form action="list.do" method="get" id="searchForm">
            <input type="hidden" name="pageNo" value="1"/>
            <div class="tools">
                <ul class="toolbar">
                    <li class="click">
                        <a href="add.do"><span><img src="${base}/resources/images/t01.png" /></span>添加</a>
                    </li>
                    <li>
                        <a href="javascript:InternalContact.delAll();"><span><img src="${base}/resources/images/t03.png" /></span>删除</a>
                    </li>
                    <li style="padding:0 0">
                        <span style="margin:0px 5px">关键字</span>
	                	<input name="searchText" type="text" class="dfinput" style="width:160px;" />&nbsp;
                    </li>
                    <li>
						<a href="javascript:InternalContact.search()"><span><img src="${base}/resources/images/search24.png" /></span>查找</a>
                    </li>
                </ul>
				<ul class="toolbar1">
                    <li>
                        <a href="import.do"><span><img src="${base}/resources/images/excel.png" width="24px" height="24px"/></span>导入联系人</a>
                    </li>
                </ul>
            </div>
			</form>
            <table class="tablelist">
                <thead>
                    <tr>
                        <th width="30"><input name="" type="checkbox" onclick="InternalContact.form.checkToggle('ids',this);"/></th>
						<th width="60">编号<i class="sort"><img src="${base}/resources/images/px.gif" /></i></th>
						<th>姓名</th>
                        <th>单位名称</th>
                        <th>职务</th>
                        <th>办公电话</th>
                        <th>住宅电话</th>
                        <th>手机号码</th>
                        <th width="80">操作</th>
                    </tr>
                </thead>
                <tbody>
                	
                	<#if page??>
					<#list page.list as d>
                    <tr id="tr_${d.id}">
                        <td>
                            <input name="ids" type="checkbox" value="${d.id}" />
                        </td>
						<td>${d_index+1}</td>
                        <td>${d.name!''}</td>
                        <td>${d.unit!''}</td>
						<td>${d.title!''}</td>
						<td>${d.officetel!''}</td>
						<td>${d.hometel!''}</td>
						<td>${d.phone!''}</td>
                        <td>
                            <a href="edit.do?id=${d.id}" class="tablelink">修改</a>
							&nbsp;
                        	<a href="javascript:InternalContact.del('${d.id}')" class="tablelink">删除</a>
                        </td>
                    </tr>
					</#list>
					</#if>
                </tbody>
            </table>
			<@common.pagination />
        </div>
    </body>
</html>